list_student_name = ["悟空", "八戒", "白骨精"]
list_student_age = [28, 25, 36]
student_dict = {}
# 生成器要配套for使用
for item in zip(list_student_name, list_student_age):
    student_dict[item[0]] = item[1]
    print(item)
print(student_dict)

# 列表推导式,使用大括号,是字典的列表推导式
# 生成器表达式用小括号,比列表推导式更省内存

